package com.keqiang.breadcrumb;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

/**
 * 目录对象
 *
 * @author Created by wanggaowan on 2022/5/23 15:05
 */
public class Folder {
    /**
     * 目录Id
     */
    private final String id;
    /**
     * 目录名称
     */
    private final String name;
    /**
     * 目录的一些额外数据
     */
    private Object extraData;
    
    public Folder(String id, @NonNull String name) {
        this.id = id;
        this.name = name;
    }
    
    @Nullable
    public String getId() {
        return id;
    }
    
    @NonNull
    public String getName() {
        return name;
    }
    
    @Nullable
    public Object getExtraData() {
        return extraData;
    }
    
    public void setExtraData(Object extraData) {
        this.extraData = extraData;
    }
}
